package com.day12_Thread;

/**
 * @ClassName: Runnable01
 * @Author: zw
 * @Description: 出百万拳，行万里路；
 * @Create 2024/3/23-21:07
 * @Version 1.0
 */
public class Runnable01 {
    public static void main(String[] args) {
        // 03 创建myRunnable对象
        MyRunnable myRunnable = new MyRunnable();
        // 04. 创建Thread类，把MyRuuable对象作为构造方法的参数
        Thread myThread01 = new Thread(myRunnable, "我是美女01");
        Thread myThread02 = new Thread(myRunnable, "我是美女02");

        // 05. start
        myThread01.start();
        myThread02.start();
    }
}
